package com.sbr.seb.wicket.menu.administration;

import com.sbr.seb.wicket.element.MenuItem;
import com.sbr.seb.wicket.page.BaseSideMenu;
import com.sbr.seb.wicket.page.administration.AdminCategoriesPage;
import com.sbr.seb.wicket.page.administration.AdminItemsPage;
import com.sbr.seb.wicket.page.administration.application.ListApplicationsPage;

public class AdministrationSideMenu extends BaseSideMenu {

	private static final long serialVersionUID = 1L;

	public AdministrationSideMenu(String id) {
    	super(id);
		
    	MenuItem suiviAnomaliesMenuItem = new MenuItem("Général", ListApplicationsPage.class);
		sideMenuItemList.add(suiviAnomaliesMenuItem);
		
		suiviAnomaliesMenuItem.addSousMenuItem(new MenuItem("Applications", ListApplicationsPage.class));
		
		MenuItem tbdMenuItem = new MenuItem("Tableau de Bord", AdminCategoriesPage.class);
		sideMenuItemList.add(tbdMenuItem);
		
		tbdMenuItem.addSousMenuItem(new MenuItem("Catégories", AdminCategoriesPage.class));
		tbdMenuItem.addSousMenuItem(new MenuItem("Items", AdminItemsPage.class));
		
    }
}
